package com.itheima.eurekaprovider.service.impl;

import com.itheima.eurekaprovider.dao.CustomerDao;
import com.itheima.eurekaprovider.pojo.Customer;
import com.itheima.eurekaprovider.service.CustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CustomerServiceImpl implements CustomerService {

    @Autowired
    private CustomerDao customerDao;

    @Override
    public List<Customer> findAll() {
        List<Customer> customerList = customerDao.findAll();
        return customerList;
    }
}
